package com.develope.tree.service;

public class SoapHelper {
	public static final String SOAP_UpdateData = "http://14.0.18.225/UpdateData";
	public static final String METHOD_UpdateData= "UpdateData";
	public static final String SOAP_GetUserParcels = "http://14.0.18.225/GetUserParcels";
	public static final String METHOD_GetUserParcels= "GetUserParcels";
	public static final String SOAP_CheckExistData = "http://14.0.18.225/CheckExistData";
	public static final String METHOD_CheckExistData= "CheckExistData";
	
	
	public static final String NAMESPACE = "http://14.0.18.225/";
	public static final String URL = "http://14.0.18.225/webservice.asmx?wsdl";


	
	
	public static String getUrlRequest(String operation) {
		return URL + "/" + operation;
	}
	
	public static String getAction(String operation) {
		return NAMESPACE + operation;
	}
}
	
/*	// operation name

	public SoapHelper() {
		
	}
		
	public String Call(String UserName){
		SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);
		PropertyInfo pi=new PropertyInfo();
		    pi.setName("UserName");
			pi.setValue(UserName);
			pi.setType(String.class);
			request.addProperty(pi);
	//		pi=new PropertyInfo();
	//		pi.setName("b");
	//		pi.setValue(b);
	//		pi.setType(Integer.class);
	//		request.addProperty(pi);
			
		SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
		envelope.dotNet = true;
		
		envelope.setOutputSoapObject(request);
		
		HttpTransportSE httpTransport = new HttpTransportSE(URL);
		Object response = null;
		try{
			httpTransport.call(SOAP_ACTION, envelope);
			response = envelope.getResponse();
		}
		catch (Exception exception){
			response=exception.toString();
		}
		return response.toString();
	}
} */
